package com.lian.anlimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lian.anlimall.product.vo.SpuSaveVo;
import com.lian.common.utils.PageUtils;
import com.lian.anlimall.product.entity.SpuInfoEntity;

import java.util.Map;

/**
 * spu信息
 *
 * @author liananli
 * @email 377078237@qq.com
 * @date 2021-01-25 18:21:23
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo vo);

    void saveBaseSpuInfo(SpuInfoEntity infoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    void up(Long spuId);
    /**
     * 根据skuId查询spu的信息
     * @param skuId
     * @return
     */
    SpuInfoEntity getSpuInfoBySkuId(Long skuId);

    PageUtils queryPage1(Map<String, Object> params, Long catelogId);

    Integer souTotal();
}

